/* 测验页面样式 */

.test-header {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.test-header h1 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.test-header p {
    color: #7f8c8d;
    margin-bottom: 1rem;
}

.home-btn {
    position: absolute;
    top: 0;
    right: 0;
    background: #3498db;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.home-btn:hover {
    background: #2980b9;
}

/* 测验选择页面 */
.test-selection {
    text-align: center;
}

.test-selection h2 {
    color: #2c3e50;
    margin-bottom: 2rem;
}

.word-selection {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.word-option {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.word-option:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.word-option h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.word-option p {
    opacity: 0.9;
    font-size: 0.9rem;
}

/* 测验进行页面 */
.test-progress {
    max-width: 800px;
    margin: 0 auto;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #ecf0f1;
    border-radius: 4px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
}

.question-info {
    text-align: center;
    color: #7f8c8d;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.question-container {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.question-container h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    line-height: 1.6;
}

.options {
    margin-bottom: 2rem;
}

.option {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    padding: 1rem;
    margin-bottom: 0.8rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.option:hover {
    background: #e3f2fd;
    border-color: #2196f3;
}

.option.selected {
    background: #e3f2fd;
    border-color: #2196f3;
    color: #1976d2;
}

.option.correct {
    background: #e8f5e8;
    border-color: #4caf50;
    color: #2e7d32;
}

.option.incorrect {
    background: #ffebee;
    border-color: #f44336;
    color: #c62828;
}

.next-btn {
    background: #2ecc71;
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
    float: right;
}

.next-btn:hover:not(:disabled) {
    background: #27ae60;
}

.next-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
}

/* 测验结果页面 */
.test-result {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.test-result h2 {
    color: #2c3e50;
    margin-bottom: 2rem;
}

.score-display {
    margin-bottom: 2rem;
}

.score-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.score-circle span {
    color: white;
    font-size: 2rem;
    font-weight: bold;
}

.score-display p {
    color: #7f8c8d;
    font-size: 1.1rem;
}

.result-details {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    text-align: left;
}

.result-item {
    margin-bottom: 1rem;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.result-item.correct {
    background: #e8f5e8;
    border-left-color: #4caf50;
}

.result-item.incorrect {
    background: #ffebee;
    border-left-color: #f44336;
}

.result-item h4 {
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.result-item p {
    margin-bottom: 0.3rem;
    color: #7f8c8d;
}

.result-item .correct-answer {
    color: #27ae60;
    font-weight: bold;
}

.result-item .user-answer {
    color: #e74c3c;
}

.result-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.retry-btn, .review-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.retry-btn:hover {
    background: #2980b9;
}

.review-btn {
    background: #e67e22;
}

.review-btn:hover {
    background: #d35400;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .test-header {
        margin-bottom: 1.5rem;
    }
    
    .home-btn {
        position: static;
        margin-top: 1rem;
    }
    
    .word-selection {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .word-option {
        padding: 1.5rem;
    }
    
    .question-container {
        padding: 1.5rem;
    }
    
    .result-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .retry-btn, .review-btn, .home-btn {
        width: 200px;
    }
}

/* 测验模块样式 */
.test-module {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.test-module h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.test-module > p {
    color: #7f8c8d;
    margin-bottom: 1.5rem;
}

/* 模拟题练习选择样式 */
.practice-selection {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.practice-option {
    background: linear-gradient(135deg, #ff7b7b 0%, #667eea 100%);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.practice-option:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.practice-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.practice-option h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.practice-option p {
    opacity: 0.9;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.practice-info {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    display: inline-block;
}

/* 模拟题练习 - 左右布局 */
.practice-layout {
    display: flex;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    height: calc(100vh - 200px);
}

.practice-article-panel {
    flex: 1;
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}

.practice-question-panel {
    flex: 1;
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.article-header-inline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #ecf0f1;
}

.article-title-inline h2 {
    color: #2c3e50;
    margin: 0;
    font-size: 1.8rem;
}

.article-author-inline {
    color: #7f8c8d;
    font-style: italic;
    margin-top: 0.5rem;
}

.article-content-inline {
    line-height: 2.2;
    font-size: 1.1rem;
    color: #2c3e50;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 10px;
}

/* 题目面板样式 */
.question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #ecf0f1;
}

.timer-display {
    background: #e74c3c;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
    font-size: 1.1rem;
}

.timer-display.warning {
    background: #f39c12;
    animation: pulse 1s infinite;
}

.timer-display.danger {
    background: #e74c3c;
    animation: pulse 0.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.question-progress {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.progress-info {
    color: #7f8c8d;
    font-size: 1rem;
}

.question-content {
    flex: 1;
    overflow-y: auto;
}

.question-text {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    line-height: 1.6;
}

.question-options {
    margin-bottom: 2rem;
}

.question-option {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    padding: 1rem;
    margin-bottom: 0.8rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.question-option:hover {
    background: #e3f2fd;
    border-color: #2196f3;
}

.question-option.selected {
    background: #e3f2fd;
    border-color: #2196f3;
    color: #1976d2;
}

.question-option.correct {
    background: #e8f5e8;
    border-color: #4caf50;
    color: #2e7d32;
}

.question-option.incorrect {
    background: #ffebee;
    border-color: #f44336;
    color: #c62828;
}

/* 翻译题样式 */
.translation-question {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.translation-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.translation-answer {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
}

.translation-answer h4 {
    color: #28a745;
    margin-bottom: 0.5rem;
}

.translation-answer p {
    color: #2c3e50;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.question-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 2px solid #ecf0f1;
}

.question-nav-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.question-nav-btn:hover:not(:disabled) {
    background: #2980b9;
}

.question-nav-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
}

.question-nav-btn.next {
    background: #2ecc71;
}

.question-nav-btn.next:hover:not(:disabled) {
    background: #27ae60;
}

.question-nav-btn.finish {
    background: #e74c3c;
}

.question-nav-btn.finish:hover:not(:disabled) {
    background: #c0392b;
}

/* 响应式设计 - 左右布局 */
@media (max-width: 1024px) {
    .practice-layout {
        flex-direction: column;
        height: auto;
    }
    
    .practice-article-panel {
        max-height: 400px;
    }
    
    .practice-question-panel {
        min-height: 500px;
    }
}

@media (max-width: 768px) {
    .practice-layout {
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .practice-article-panel,
    .practice-question-panel {
        padding: 1.5rem;
    }
    
    .question-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .question-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .question-nav-btn {
        width: 100%;
    }
}

/* 模拟题练习 - 文章展示页面 */
.practice-article {
    max-width: 900px;
    margin: 0 auto;
}

.article-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #ecf0f1;
}

.back-btn {
    background: #95a5a6;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.back-btn:hover {
    background: #7f8c8d;
}

.article-header h2 {
    color: #2c3e50;
    margin: 0;
}

.article-author {
    color: #7f8c8d;
    font-style: italic;
}

.article-content {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.article-text {
    line-height: 2.2;
    font-size: 1.2rem;
    color: #2c3e50;
    margin-bottom: 2rem;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.start-practice-btn {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: background-color 0.3s;
    display: block;
    margin: 0 auto;
}

.start-practice-btn:hover {
    background: #c0392b;
}

/* 模拟题练习 - 答题页面 */
.practice-test {
    max-width: 800px;
    margin: 0 auto;
}

.practice-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.practice-progress {
    flex: 1;
    margin-left: 2rem;
}

.practice-question-container {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.practice-options {
    margin-bottom: 2rem;
}

/* 模拟题练习 - 结果页面 */
.practice-result {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
} 